<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"      
	  xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      >
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>Insert title here</title>
	</head>
	<body>
	<h:form>
		<h:panelGrid columns="2">
			<h:outputLabel for="login" value="LOGIN: *"/>
			<h:inputText id="login" value="#{userEditAdminBean.editUser.login}" readonly="true"/>
			
			<h:outputLabel for="passwordOld" value="HASLO ADMINISTRATORA: *"/>
			<h:inputSecret id="passwordOld" value="#{userEditAdminBean.passwordAdmin}"/>
			
			<h:outputLabel for="passwordNew" value="NOWE HASŁO: *"/>
			<h:inputSecret id="passwordNew" value="#{userEditAdminBean.passwordNew}"/>
			
			<h:outputLabel for="passwordNew2" value="POWTORZ NOWE HASŁO: *"/>
			<h:inputSecret id="passwordNew2" value="#{userEditAdminBean.passwordNew2}"/>
			
			<h:outputLabel for="email" value="EMAIL: *"/>
			<h:inputText id="email" value="#{userEditAdminBean.editUser.email}"/>
			
			<h:outputLabel for="phone" value="TELEFON: *"/>
			<h:inputText id="phone" value="#{userEditAdminBean.editUser.phoneNumber}"/>

			<h:outputLabel for="first_name" value="IMIE: *"/>
			<h:inputText id="first_name" value="#{userEditAdminBean.editUser.firstName}"/>
			
			<h:outputLabel for="last_name" value="NAZWISKO: *"/>
			<h:inputText id="last_name" value="#{userEditAdminBean.editUser.lastName}"/>
			
			<h:outputLabel for="admin" value="ADMINISTRATOR: *"/>
			<h:inputText id="admin" value="#{userEditAdminBean.editUser.admin}"/>
			
			<h:outputLabel for="activ" value="AKTYWNY: *"/>
			<h:inputText id="activ" value="#{userEditAdminBean.editUser.active}"/>
			
			<h:outputLabel for="button"/>
			<h:commandButton id="button" value="Save" action="#{userEditAdminBean.tryEdit()}"/>
			<h:outputText for="result" value="#{userEditBean.editStatus}"/>
		</h:panelGrid>
	</h:form>
	</body>
</html>